import http from "@/utils/http";
import { AxiosRequestConfig } from "axios";

export interface GetById_ {
  /**
   * @description 指标id
   */
  id: number;
}

export class MetricsChangeLog {
  /**
   * 根据指标id查询指标变更记录
   *
   * @tags 指标变更记录
   * @request GET: /metrics-change-log/{id}
   * @secure
   */
  getById = ({ id }: { id: number } | GetById_, params: AxiosRequestConfig = {}) =>
    http.request<defs.ResponseEntityListMetricsChangeLogVO>({
      url: `/metrics-change-log/${id}`,
      method: "GET",
      ...params,
    });
}

export default new MetricsChangeLog();
